/*@preserve ***Version 2.41.0*** */ /*@license * Copyright 2002 - 2018 Qualtrics, LLC. * All rights reserved. * * Notice: All code, text, concepts, and other information herein (collectively, the * "Materials") are the sole property of Qualtrics, LLC, except to the extent * otherwise indicated. The Materials are proprietary to Qualtrics and are protected * under all applicable laws, including copyright, patent (as applicable), trade * secret, and contract law. Disclosure or reproduction of any Materials is strictly * prohibited without the express prior written consent of an authorized signatory * of Qualtrics. For disclosure requests, please contact notice@qualtrics.com. */ try { (window["WAFQualtricsWebpackJsonP-cloud-2.41.0"]=window["WAFQualtricsWebpackJsonP-cloud-2.41.0"]||[]).push([[7],{17:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u}));var i=[],r=function(e){var t=e;return"string"==typeof e&&(t=document.getElementById(e)),t};function o(e,t,n){try{var i=e[t];return e[t]=n(i),function(){e[t]=i}}catch(e){return function(){}}}var a=function(e,t){var n;13!==e.which&&32!==e.which||(e.preventDefault(),(n=document.querySelector('button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))&&n.focus(),t())},s=function(e,t,n,r){void 0===r&&(r=!1),i=i||[],e&&(i.push({elementToObserve:e,eventName:t,eventHandler:n,preventRemove:r||!1}),e.addEventListener(t,n,!1))},c=function(e){return"string"==typeof e},u=function(e){return"object"==typeof e&&e instanceof Array}},25:function(e,t,n){"use strict";function i(e){window.QSI.dbg.e(e)}n.d(t,"a",(function(){return i}))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0),r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},o=function(){function e(t,n){var o=this;this.components=e.components,this.overallLatencyStartTime=null,this.overallLatency=null,this.componentStartTimes={},this.componentLatencies={},this.componentStatuses={},this.isDuplicateScriptExecution=!1,this.setRequestId=function(e){o.requestId=e},this.startTimer=function(){o.latencyStartTime=Date.now()},this.endTimer=function(){null!==o.latencyStartTime?o.overallLatency=Date.now()-o.latencyStartTime:o.debugLog.e("Tried to log overall end time without a start time.")},this.startComponentTimer=function(e){o.componentStartTimes[e]=Date.now()},this.endComponentTimer=function(e){var t=o.componentStartTimes[e];void 0!==t?(o.componentLatencies[e]=Date.now()-t,o.debugLog.safeConsole("log","Component "+e+" loaded in "+o.componentLatencies[e]+"ms")):o.debugLog.e("Tried to log a component end time without a component start time. Component name: "+e)},this.setComponentStatus=function(e,t){o.componentStatuses[e]=t},this.markComponentAlreadyFetched=function(t){o.componentLatencies[t]||(o.componentLatencies[t]=e.alreadyFetchedMarker)},this.markDuplicateScriptExecution=function(){o.isDuplicateScriptExecution=!0},this.getPerformanceResourceTiming=function(){try{var e={},t=0,n=window.QSI.global,i=n.baseURL,o=n.hostedJSLocation,a=window.QSI.Orchestrator.scriptSrc;if(!i||!o||!a)return null;var s=new RegExp(a.split("?")[0]),c=new RegExp(o),u=new RegExp(i),l=new RegExp(c.source+"|"+u.source+"|"+s.source);return performance.getEntriesByType("resource").filter((function(e){return e.name.match(l)})).forEach((function(n){var i=n.name.split("?")[0],o=!1,a=i.match(c),u=i.match(s)&&"script"===n.initiatorType,l=i.match(/(Asset|Targeting)\.php/);if(a)i=i.split("dxjsmodule/")[1],o=!0;else if(u)i="Orchestrator",o=!0;else{if(!l)return;i=r(l,1)[0]}var d=n.transferSize,p=n.duration,g=n.decodedBodySize,f=n.domainLookupStart,h=n.domainLookupEnd;o&&(t+=d),e[i]={transferSize:d,decodedBodySize:g,totalLatency:p,dnsLatency:h-f}})),t>0&&(e.totalJSTransfer=t),e}catch(e){return null}},this.send=function(e){try{if(null===o.overallLatency)return void o.debugLog.e("Incomplete Latency Data Provided");var t=i.a.baseURL+"Ajax.php?action=LatencyLog&"+i.a.getClientVersionQueryString(),n=o.buildLoggingData(e);QSI.util.sendHttpRequest({type:"POST",url:t,header:{"Content-type":"application/x-www-form-urlencoded"},includeCookies:!1,data:QSI.util.buildQueryString({LoggingData:JSON.stringify(n)})})}catch(e){o.debugLog.e(e)}},this.buildLoggingData=function(e){if(e&&e.length>0){var t={},n={};return e.forEach((function(e){e in o.componentLatencies&&(t[e]=o.componentLatencies[e]),e in o.componentStatuses&&(n[e]=o.componentStatuses[e])})),{MetricName:o.metricName,Latency:-1,ComponentLatencies:t,ComponentStatuses:n,AdditionalData:{RequestID:o.requestId,UserAgent:navigator.userAgent,BrandID:i.a.global.brandID,BrandDC:i.a.global.brandDC,OtherRequestIDsExecuted:[],IsDuplicateScriptExecution:!1}}}var r=[];for(var a in i.a.Request)Object.prototype.hasOwnProperty.call(i.a.Request,a)&&a!==o.requestId&&r.push(a);var s={};for(var c in o.componentLatencies)c.startsWith(o.components.SR)||(s[c]=o.componentLatencies[c]);var u={};for(var c in o.componentStatuses)c.startsWith(o.components.SR)||(u[c]=o.componentStatuses[c]);var l={MetricName:o.metricName,Latency:o.overallLatency,ComponentLatencies:s,ComponentStatuses:u,AdditionalData:{RequestID:o.requestId,UserAgent:navigator.userAgent,BrandID:i.a.global.brandID,BrandDC:i.a.global.brandDC,OtherRequestIDsExecuted:r,IsDuplicateScriptExecution:o.isDuplicateScriptExecution}},d=o.getPerformanceResourceTiming();return d&&Object.keys(d).length&&(l.PerformanceResourceTiming=d),l},this.sampledSend=function(e){try{Math.random()<=e/100&&o.send()}catch(e){o.debugLog.e(e)}},this.sampledComponentSend=function(e,t){try{Math.random()<=e/100&&o.send(t)}catch(e){o.debugLog.e(e)}},this.debugLog=t,this.metricName=null!=n?n:"si.SILatency"}return e.alreadyFetchedMarker="ALREADY_FETCHED",e.components={CORE_MODULE:"coreModuleRequest",TARGETING:"targetingRequest",DPR_TARGETING:"dprTargetingRequest",XMD_DEBUG_TARGETING:"xmdDebugTargetingRequest",ASSETS_AND_MODULES:"allAssetDefinitionsAndJSModules",CONTACT_FREQUENCY:"contactFrequencyCheck",SR:"sessionReplayRequest"},e}()},29:function(e,t,n){"use strict";var i,r;n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),function(e){e.ISOLATION_ERROR="ISOLATION_ERROR",e.NOT_ISOLATED="NOT_ISOLATED",e.ISOLATED_V1="ISOLATED_V1"}(i||(i={})),function(e){e.NOT_ISOLATED="not_isolated",e.ISOLATED_V1="isolated_v1"}(r||(r={}));var o,a,s;!function(e){e.IPAddress="IPAddress"}(o||(o={})),function(e){e.StartingUrl="StartingUrl",e.Device="Device",e.UserAgent="UserAgent",e.Referrer="Referrer",e.ValidatedIdentifierRules="ValidatedIdentifierRules",e.ZoneIdentifierRules="ZoneIdentifierRules",e.ExtRefId="ExtRefId",e.Email="Email",e.Phone="Phone",e.ContactEmbeddedData="ContactEmbeddedData",e.DirectoryId="DirectoryId",e.ScreenResolutionWidth="ScreenResolutionWidth",e.ScreenResolutionHeight="ScreenResolutionHeight",e.BrowserWidth="BrowserWidth",e.BrowserHeight="BrowserHeight",e.Browser="Browser",e.OS="OperatingSystem",e.Country="Country"}(a||(a={})),function(e){e.RageClick="RageClick",e.MouseThrash="MouseThrash",e.DeadClick="DeadClick",e.ErrorClick="ErrorClick"}(s||(s={}))},3:function(e,t,n){"use strict";n.r(t);n(49),n(50),n(51),n(52);var i=n(17),r=function(){var e=this;this.trackElements=function(){if(0==e.loaded){e.loadCounts();var t=window.QSI,n=t.dbg,r=t.global.eventTrackers;Object.keys(r).forEach((function(t){var n=r[t];e.trackElement(n,t)})),Object(i.d)(window,"beforeunload",(function(){try{e.storeCounts()}catch(e){void 0!==window.QSI&&n&&n.e&&n.e(e)}})),Object(i.d)(window,"pagehide",(function(){try{e.storeCounts()}catch(e){void 0!==window.QSI&&n&&n.e&&n.e(e)}})),e.loaded=!0}},this.trackElement=function(t,n){var r=window.QSI.dbg,o=Object(i.a)(t);o&&Object(i.d)(o,"click",(function(){try{e.track(n)}catch(e){void 0!==window.QSI&&r&&r.e&&r.e(e)}}))},this.track=function(t){e.clicked=!0,e.counts[t]?e.counts[t]++:e.counts[t]=1},this.storeCounts=function(){if(!0===e.clicked){var t=window.QSI.cookie,n=JSON.stringify(e.counts);t.set(e.cookieName,n)}},this.loadCounts=function(){var t=window.QSI.cookie.get(e.cookieName);t&&(e.counts=JSON.parse(t))},this.get=function(t){return e.counts[t]?e.counts[t]:0},this.incrementEventList=function(){if("_qsie"in window&&Object(i.b)(window._qsie))for(var t=0,n=window._qsie.length;t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},m=function(){function e(){var e=this;this.unloading=!1,this.Events=new p,this.SessionRecording=new w,this.load=function(){try{var t=window.QSI.Orchestrator.Deferred(),n=t.promise();return window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0?window.QSI.PendingQueue.push(e.loadHelper.bind(e,t)):e.loadHelper.bind(e,t)(),n}catch(e){window.QSI.dbg.e(e)}finally{window.QSI.dbg.c("DXJSAPIEvents: QSI.API.load()")}},this.unloadForSPA=function(t){window.QSI.global.featureFlags["DX.DXA_Auto_SPA"]&&t&&window.QSI.API.SessionRecording.pause(),e.unloadBase(!0)},this.unload=function(){e.unloadBase(!1)},this.unloadBase=function(t){void 0===t&&(t=!1),window.QSI.DataLayerHelper=void 0,window.QSI.InterceptReevaluator=new d.a;try{if(window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0)return void(t?window.QSI.PendingQueue.push(window.QSI.API.unloadForSPA):window.QSI.PendingQueue.push(window.QSI.API.unload));if(e.unloading=!0,window.QSI.SR&&!t){window.QSI.API.SessionRecording.pause();var n=document.getElementById("QSI_TestSessionToolbar");n&&n.parentNode&&n.parentNode.removeChild(n)}if(window.QSI.reg&&(window.QSI.util.forOwn(window.QSI.reg,(function(e,t){window.QSI.reg[t].remove()})),window.QSI.util.removeObservers(),window.QSI.util.removeTimeouts()),window.QSI.debug&&(window.QSI.util.remove(window.QSI.util.$("QSI_Debug")),window.QSI.debuggerHasDisplayed=!1),window.QSI.styleElements)for(var i=window.QSI.styleElements,r=0;r0)return void window.QSI.PendingQueue.push((function(){window.QSI.API.run(t)}));window.QSI.InterceptsRan||void 0===window.QSI.reg||(window.QSI.runOptions=t,e.shouldRunWithOptions(t)?(e.prepareForEvaluationWithOptions(),window.QSI.InterceptReevaluator.debouncedEvaluateAndRun()):window.QSI.RunIntercepts(null,!0))}catch(e){window.QSI.dbg.e(e)}finally{window.QSI.dbg.c("DXJSAPIEvents: QSI.API.run()")}},this.prepareForEvaluationWithOptions=function(){var e,t;try{for(var n=y(Object.entries(window.QSI.Request)),i=n.next();!i.done;i=n.next()){var r=b(i.value,2);r[0];r[1].Intercepts={}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}window.QSI.InterceptReevaluator.resetInterceptHasRun(),window.QSI.InterceptReevaluator.resetEvaluationResults()},this.shouldRunWithOptions=function(e){var t=null==e?void 0:e.jsExpressionValues;return t&&"object"==typeof t&&Object.keys(t).length>0},this.getIntercept=function(e){return new Promise((function(e,t){try{window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0?window.QSI.PendingQueue.push((function(){e()})):e()}catch(e){t(e)}})).then((function(){var t=b(window.QSI.Orchestrator.getInterceptFromSiResponse(e),2),n=t[0],i=t[1];if(!n)throw e+" is not a valid Intercept ID";return h.getInstance(v({},n),i?v({},i):null)})).catch((function(e){throw window.QSI.dbg.e(e),e})).finally((function(){window.QSI.dbg.log("DXJSAPIEvents: QSI.API.getIntercept()",!1,"info")}))}}return e.prototype.loadHelper=function(e){try{if(window.QSI.reg||this.unloading)return void e.reject();void 0===window.QSI.reg&&(window.QSI.reg={}),void 0===window.QSI.ed&&(window.QSI.ed={}),void 0===window.QSI.reqID&&(window.QSI.reqID={}),void 0===window.QSI.Request&&(window.QSI.Request={}),void 0===window.QSI.styleElements&&(window.QSI.styleElements=[]),window.QSI.util.forOwn(window.QSI.reqID,(function(t,n){var i={loadingFromAPI:!0};i.id=n,"Editing"===window.QSI.version&&(i.version="0"),void 0!==window.QSI.global.clientVersion&&null!==window.QSI.global.clientVersion&&(i.Q_CLIENTVERSION=window.QSI.global.clientVersion),void 0!==window.QSI.global.clientType&&null!==window.QSI.global.clientType&&(i.Q_CLIENTTYPE=window.QSI.global.clientType,void 0!==window.QSI.clientTypeVariant&&(i.Q_CLIENTTYPE+=window.QSI.clientTypeVariant)),0===n.search(/ZN/)?i.ZoneID=n:i.InterceptID=n,window.QSI.isDebug&&(i.Q_DEBUG=null),i.deferred=e,window.QSI.Orchestrator.load(i,!1)}))}catch(e){window.QSI.dbg.e(e)}},e}();function R(e){var t=new s;window.QSI&&window.QSI.closelyLoadedMultiZoneInfo&&(t.c("Multiple zone detected with info "+window.QSI.closelyLoadedMultiZoneInfo),window.QSI.closelyLoadedMultiZoneInfo=void 0);var n=new a.a(t);window.QSI.API=window.QSI.API||new m,window.QSI.ClientLog=new c,window.QSI.dbg=t,window.QSI.LatencyLog=n,window.QSI.EventTracker=new r,window.QSI.cookie=new u.a,window.QSI.CookieStorage=new l,window.QSI.Orchestrator=new o.a,window.QSI.Orchestrator.init(n,t,e)}n.d(t,"initialize",(function(){return R}))},34:function(e,t,n){"use strict";var i,r,o,a,s,c,u=n(29),l=!1,d=function(){function e(e){if(!l&&e.push){l=!0;var t=e.push;e.push=function(){for(var e,n,i,r=[],o=0;o0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e,t,i,r,o){var a=this;this.scZIndex=window.QSI.global.currentZIndex++,this.isScreenCaptureCancelled=!1,this.scCapturingScreen=null,this.scScreen=null,this.screenCaptureAnnotationsMap={},this.defaultTimeout=1e4,this.DX_SCREEN_CAPTURE_API_PATH=window.QSI.global.brandBaseUrl+"/dx-screencapture",this.QSI=window.QSI,this.elementsToRestoreAfterScreenshot=[],this.alreadyProcessedBlobUrls=new Map,this.screenCaptureTimeout=this.QSI.overrides.screenCaptureTimeout?this.QSI.overrides.screenCaptureTimeout:this.defaultTimeout,this.decompressPng=function(e){return"data:image/jpeg;base64,"+e},this.handleScreenCaptureCancellationIfNeeded=function(e,t){return!!a.isScreenCaptureCancelled&&(a.isScreenCaptureCancelled=!1,e.abort(),null!==t&&clearTimeout(t),!0)},this.compressSnapshot=function(e){return(new w.a).encode([e])},this.captureScreen=function(e){return v(a,void 0,void 0,(function(){var t,n,i,r,o,a,s,c,u,l,d,p,g,f,h,S,I,w;return y(this,(function(v){switch(v.label){case 0:t=new AbortController,n=null,i=null,v.label=1;case 1:return v.trys.push([1,6,7,8]),this.setInterceptVisibilty("hidden"),n=window.setTimeout((function(){return t.abort()}),this.screenCaptureTimeout),[4,this.findAndReplaceBlobs()];case 2:return i=v.sent(),[4,this.takeDOMSnapshotAndSerialize()];case 3:return r=v.sent(),i&&(i(),i=null),this.showCapturingScreen(),o=this.compressSnapshot(r),a={viewport:{width:window.innerWidth,height:window.innerHeight},resolutionRatio:1},s={serializedDOM:o,config:a},[4,fetch(this.DX_SCREEN_CAPTURE_API_PATH,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),mode:"cors",signal:t.signal})];case 4:if(c=v.sent(),this.handleScreenCaptureCancellationIfNeeded(t,n))return[2];if(!c.ok)throw new Error("HTTP "+c.status);return[4,c.json()];case 5:return u=v.sent().imageData,this.handleScreenCaptureCancellationIfNeeded(t,n)?[2]:(l=this.decompressPng(u),this.succeededScreenCapture(e,l,this.translations),[3,8]);case 6:if(d=v.sent(),i){try{i()}catch(e){null===(h=null===(f=this.QSI.dbg)||void 0===f?void 0:f.e)||void 0===h||h.call(f,"Failed to restore blob URLs: "+e)}i=null}return this.handleScreenCaptureCancellationIfNeeded(t,n)?[2]:"AbortError"===(null==d?void 0:d.name)?(null!==n&&clearTimeout(n),p="Screen capture request timed out after "+this.screenCaptureTimeout+"ms",this.failedScreenCapture(p,this.translations),[2,d]):(g="Screen capture failed: "+(null!==(S=null==d?void 0:d.message)&&void 0!==S?S:d),this.failedScreenCapture(g,this.translations),[2,d]);case 7:if(i)try{i()}catch(e){null===(w=null===(I=this.QSI.dbg)||void 0===I?void 0:I.e)||void 0===w||w.call(I,"Failed to restore blob URLs in finally: "+e)}return null!==n&&clearTimeout(n),[7];case 8:return[2]}}))}))},this.transformBlobUrlToDataUrl=function(e){return v(a,void 0,void 0,(function(){var t,n,i,r;return y(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,o.sent().blob()];case 2:return t=o.sent(),[2,new Promise((function(e,n){var i=new FileReader;i.onloadend=function(){return e(i.result)},i.onerror=n,i.readAsDataURL(t)}))];case 3:return n=o.sent(),null===(r=null===(i=this.QSI.dbg)||void 0===i?void 0:i.e)||void 0===r||r.call(i,"Failed to convert blob URL to data URL: "+n),[2,e];case 4:return[2]}}))}))},this.extractBlobUrl=function(e){var t=e.replace(/"/g,'"').replace(/"/g,'"').match(/blob:(?:https?:\/\/[^\s"')]+|[^\s"')]+)/);return t?t[0]:null},this.processBlobImg=function(){return v(a,void 0,void 0,(function(){var e,t,n,i,r,o,a,s,c,u;return y(this,(function(l){switch(l.label){case 0:e=document.querySelectorAll("img"),l.label=1;case 1:l.trys.push([1,7,8,9]),t=b(Array.from(e)),n=t.next(),l.label=2;case 2:return n.done?[3,6]:(i=n.value,(o=(r=i).src)&&o.startsWith("blob:")?(this.elementsToRestoreAfterScreenshot.push({element:r,property:"src",originalValue:o}),(a=this.alreadyProcessedBlobUrls.get(o))?[3,4]:[4,this.transformBlobUrlToDataUrl(o)]):[3,5]);case 3:a=l.sent(),this.alreadyProcessedBlobUrls.set(o,a),l.label=4;case 4:r.src=a,l.label=5;case 5:return n=t.next(),[3,2];case 6:return[3,9];case 7:return s=l.sent(),c={error:s},[3,9];case 8:try{n&&!n.done&&(u=t.return)&&u.call(t)}finally{if(c)throw c.error}return[7];case 9:return[2]}}))}))},this.processBlobStyles=function(){return v(a,void 0,void 0,(function(){var e,t,n,i,r,o,a,s,c,u,l,d,p;return y(this,(function(g){switch(g.label){case 0:e=document.querySelectorAll("*"),g.label=1;case 1:g.trys.push([1,7,8,9]),t=b(Array.from(e)),n=t.next(),g.label=2;case 2:return n.done?[3,6]:(i=n.value,r=i,o=window.getComputedStyle(r),(a=o.backgroundImage)&&"none"!==a&&a.includes("blob:")&&(s=this.extractBlobUrl(a))?(c=r.style.backgroundImage||"",this.elementsToRestoreAfterScreenshot.push({element:r,property:"backgroundImage",originalValue:c}),(u=this.alreadyProcessedBlobUrls.get(s))?[3,4]:[4,this.transformBlobUrlToDataUrl(s)]):[3,5]);case 3:u=g.sent(),this.alreadyProcessedBlobUrls.set(s,u),g.label=4;case 4:r.style.backgroundImage='url("'+u+'")',g.label=5;case 5:return n=t.next(),[3,2];case 6:return[3,9];case 7:return l=g.sent(),d={error:l},[3,9];case 8:try{n&&!n.done&&(p=t.return)&&p.call(t)}finally{if(d)throw d.error}return[7];case 9:return[2]}}))}))},this.findAndReplaceBlobs=function(){return v(a,void 0,void 0,(function(){var e=this;return y(this,(function(t){switch(t.label){case 0:return[4,this.processBlobImg()];case 1:return t.sent(),[4,this.processBlobStyles()];case 2:return t.sent(),[2,function(){var t,n;try{for(var i=b(e.elementsToRestoreAfterScreenshot),r=i.next();!r.done;r=i.next()){var o=r.value,a=o.element,s=o.property,c=o.originalValue;"src"===s?a.src=c:"backgroundImage"===s&&(a.style.backgroundImage=c||"")}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}]}}))}))},this.takeDOMSnapshotAndSerialize=function(){return v(a,void 0,void 0,(function(){var e,t=this;return y(this,(function(i){switch(i.label){case 0:return[4,Promise.resolve().then(n.bind(null,26))];case 1:return e=i.sent().record,[2,new Promise((function(n,i){var r,o,a=!1,s=function(){};try{if(s=e({emit:function(e){var i,r;if(e.type===I.EventType.FullSnapshot&&!a){a=!0;try{"function"==typeof s&&s()}catch(e){null===(r=null===(i=t.QSI.dbg)||void 0===i?void 0:i.e)||void 0===r||r.call(i,e)}n(e)}},maskAllInputs:!0,blockSelector:"",maskTextSelector:""}),"function"==typeof e.takeFullSnapshot)try{e.takeFullSnapshot()}catch(e){null===(o=null===(r=t.QSI.dbg)||void 0===r?void 0:r.e)||void 0===o||o.call(r,e)}}catch(e){return void i(e)}setTimeout((function(){var e,n;if(!a){try{s()}catch(i){null===(n=null===(e=t.QSI.dbg)||void 0===e?void 0:e.e)||void 0===n||n.call(e,i)}t.failedScreenCapture,i(new Error("Failed to capture serialized DOM"))}}),t.screenCaptureTimeout)}))]}}))}))},this.createCapturingScreen=function(e){var t=a.QSI.util.build("div",{"data-qsi-sc-class":"qsi_sc_backdrop",style:{width:"100%",height:"100%",backgroundColor:"black",opacity:"0.7",filter:"alpha(opacity=70)",position:"fixed",top:"0px",left:"0px",zIndex:""+(a.scZIndex-1)}},[]),n=a.QSI.util.build("img",{"data-qsi-sc-class":"qsi_sc_loading_icon",src:a.QSI.baseURL+"../WRQualtricsShared/Graphics/siteintercept/building_preview.gif",style:{width:"100px"},alt:""},[]),i=a.QSI.util.build("img",{"data-qsi-sc-class":"qsi_sc_cancel_capture_button",src:a.QSI.baseURL+"../WRQualtricsShared/Graphics/siteintercept/remove_screen_capture.png",title:"Cancel Capturing Screen",style:{webkitFilter:"brightness(0) invert(1)",filter:"brightness(0) invert(1)",display:"block",width:"15px",height:"15px",marginLeft:"100px",cursor:"pointer"},alt:"Cancel"},[]);a.isScreenCaptureCancelled=!1,a.QSI.util.observe(i,"click",(function(){try{a.isScreenCaptureCancelled=!0,a.hideCapturingScreen()}catch(e){void 0!==a.QSI&&a.QSI.dbg&&a.QSI.dbg.e&&a.QSI.dbg.e(e)}}));var r=a.QSI.util.build("div",{"data-qsi-sc-class":"qsi_sc_building_preview_text",style:{color:"white"}},[]);r.innerText=e.ScreenCaptureBuilding||"Building Preview ...";var o=window.innerWidth,s=window.innerHeight;a.scCapturingScreen=a.QSI.util.build("div",{"data-qsi-sc-class":"qsi_sc_capturing_screen",style:{position:"fixed",top:s/2+"px",left:o/2+"px",marginTop:"-50px",marginLeft:"-50px",zIndex:""+a.scZIndex}},[i,n,r]),a.scScreen=a.QSI.util.build("div",{className:"QSI_ScreenCapture",style:{visibility:"hidden"}},[t,a.scCapturingScreen]),document.body.appendChild(a.scScreen)},this.showCapturingScreen=function(){a.setInterceptVisibilty("hidden"),a.scScreen.style.visibility="visible"},this.hideCapturingScreen=function(){a.setInterceptVisibilty("visible"),a.scScreen.style.visibility="hidden"},this.setInterceptVisibilty=function(e){if(a.intercept.container?a.intercept.container.style.visibility=e:a.intercept.link&&"FeedbackLink"===a.intercept.type?a.intercept.link.style.visibility=e:a.intercept.bar?a.intercept.bar.style.visibility=e:a.intercept.setVisibility&&a.intercept.setVisibility(e),a.intercept.embeddedWindows)for(var t=0;t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},L=function(e,t){for(var n=0,i=t.length,r=e.length;n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(e){e[e.ExtRef=100]="ExtRef",e[e.FirstName=100]="FirstName",e[e.LastName=100]="LastName",e[e.Language=20]="Language",e[e.Phone=25]="Phone",e[e.Email=100]="Email",e[e.ContactEmbeddedData=400]="ContactEmbeddedData",e[e.ContactEmbeddedDataKey=50]="ContactEmbeddedDataKey",e[e.ContactEmbeddedDataValue=50]="ContactEmbeddedDataValue"}(Q||(Q={}));var O=function(){function e(){var e=this;this.init=function(t,n,i){e.setupBaseProperties(t,n,i),e.setupWindowHandlers(),e.latencyLog.startTimer(),S.a.config.evaluate&&e.handleSPAEvaluation(S.a.config.evaluate),e.setupGlobalObjects();var r=S.a.global.legacyId,o=e.setupLegacyParams(r);return e.processQueryStringParams(o),e.applyClientVersionParams(o),e.handleLoadOrPreview(o)},this.loadAndStartSessionRecording=function(){return D(e,void 0,void 0,(function(){var e;return E(this,(function(t){return(e=window.QSI.API).load().then((function(){return e.SessionRecording.start()})),[2]}))}))},this.debouncedLoadAndStartSessionRecording=this.debounce(this.loadAndStartSessionRecording,5e3),this.isSRThrottled=function(t){var n=e.getSRThrottledCookieName(t);return!!window.QSI.cookie.get(n)},this.getSRThrottledCookieName=function(e){return"QSI_ReplaySession_Throttled_"+e},this.generateQueryString=S.a.generateQueryString,this.getClientVersionQueryString=S.a.getClientVersionQueryString,this.Deferred=function(){var t={},n="pending",i=[],r=[],o=[],a=[],s=e,c={state:function(){return n},then:function(e,t){return this.done(e).fail(t),this},done:function(e){if("pending"===n&&e)o.push(e);else if("resolved"===n)try{e.apply(this,i)}catch(e){s.debugLog.e(e)}return this},fail:function(e){if("pending"===n&&e)a.push(e);else if("rejected"===n)try{e.apply(this,r)}catch(e){s.debugLog.e(e)}return this},promise:function(){return c}};return e.forOwn(c,(function(e,n){t[n]=c[n]})),t.resolve=function(){for(var e=[],t=0;t0){var d=JSON.stringify(l);t+="&contactEmbeddedData="+encodeURIComponent(d)}}else this.debugLog.e("Contact embedded data input exceeds character limit: {"+Q.ContactEmbeddedData+"}, will be dropped in targeting evaluation.")}t+="&xmdRetryCount="+encodeURIComponent(e);var p=this.formatHasAnalyticsConsent();return t+="&hasAnalyticsConsent="+encodeURIComponent(p),t+=this.getCJAEventData()},e.prototype.xmdContactInfoIsValid=function(e,t){return e.length<=t},e.prototype.getCJAEventData=function(){var e=new Date;return"&Timestamp="+encodeURIComponent(e.toISOString())+this.getCjaCustomValues()},e.prototype.getCjaCustomValues=function(){var e=S.a.config.customCjaData;if(null!==e&&"object"==typeof e&&!Array.isArray(e)){var t={};for(var n in e){if(Object.keys(t).length>=20)break;var i=e[n],r="string"==typeof n?n:JSON.stringify(n),o="string"==typeof i?i:JSON.stringify(i);r.length>100||o.length>100||(t[r]=o)}if(0!==Object.keys(t).length)return"&customCjaData="+encodeURIComponent(JSON.stringify(t))}return""},e.prototype.formatHasAnalyticsConsent=function(){var e=S.a.config.hasAnalyticsConsent;if(!(null==e)){var t=e.toString().toLowerCase();if("true"==t||"false"==t)return t}return null},e.prototype.reduceContactEmbeddedDataToLegalSize=function(e,t){var n,i,r=Object.entries(e).slice(0,t),o={};try{for(var a=A(r),s=a.next();!s.done;s=a.next()){var c=T(s.value,2),u=c[0],l=c[1];o[u]=l}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.generateTargetingURL=function(e){var t=S.a.baseURL+"Targeting.php?",n=[];e.InterceptID&&n.push("Q_InterceptID="+e.InterceptID),e.ZoneID&&n.push("Q_ZoneID="+e.ZoneID),e.Q_XMD_DEBUG?n.push("Q_XMD_DEBUG"):(null===e.Q_DEBUG&&(n.push("Q_DEBUG"),S.a.isDebug=!0),null===e.Q_BOOKMARKLET&&n.push("Q_BOOKMARKLET")),null===e.Q_NOCACHE&&n.push("Q_NOCACHE"),void 0!==e.version&&null!==e.version&&n.push("Version="+e.version);var i=window.QSI.profile.get("QualtricsSurveyHistory","",1);if(i){var r=encodeURIComponent(Object.keys(i).toString());n.push("Q_QualtricsSurveyTaken="+r)}return void 0!==e.Q_CLIENTVERSION&&null!==e.Q_CLIENTVERSION&&n.push("Q_CLIENTVERSION="+e.Q_CLIENTVERSION),void 0!==e.Q_CLIENTTYPE&&null!==e.Q_CLIENTTYPE&&n.push("Q_CLIENTTYPE="+e.Q_CLIENTTYPE),e.Q_EXT_REF&&n.push("Q_EXT_REF"),t+n.join("&")},e.prototype.isMessageEventOriginAllowed=function(e){if(S.a.reg)for(var t in S.a.reg)if(Object.prototype.hasOwnProperty.call(S.a.reg,t)&&S.a.reg[t]&&S.a.reg[t].options){var n=S.a.reg[t].options;if(n.targetURLOrigin===e)return!0;if(n.target&&n.target.OriginalURLOrigin===e)return!0}return!1},e.prototype.doCSTargetingEvaluation=function(e,t,n){return D(this,void 0,void 0,(function(){var i,r,o,a,s,c=this;return E(this,(function(u){switch(u.label){case 0:return function(e){e.EMBEDDED_TARGET="EmbeddedTarget"}(i||(i={})),Array.isArray(e.ClientSideIntercepts)?(r=window.QSI.ClientSideTargeting,e.Intercepts=[],o={Intercepts:{},Type:S.a.config.editing?"Editing":"Published"},a={FirstDCFInterceptPassed:!1},s=e.ClientSideIntercepts.map((function(s){return D(c,void 0,void 0,(function(){var c,u,l,d=this;return E(this,(function(p){switch(p.label){case 0:return s?s.Error?(this.debugLog.log(s.Message),[3,3]):[3,1]:[3,3];case 1:return[4,new Promise((function(e,t){setTimeout((function(){try{var n=void 0;d.usePreviousEvaluationResult(s.InterceptID)?n=window.QSI.InterceptReevaluator.getInterceptEvaluationResult(s.InterceptID):(n=r.evaluateIntercept(s,a,S.a.isDebug),window.QSI.InterceptReevaluator.setInterceptEvaluationResult(s.InterceptID,n)),e(n)}catch(e){t(e)}}))}))];case 2:c=p.sent(),u=c.interceptEntry,l=c.interceptDebugInfo,o.Intercepts[s.InterceptID]=l,u&&(window.QSI.InterceptReevaluator.isActive()&&window.QSI.InterceptReevaluator.hasInterceptAlreadyRun(u.InterceptID)||(t.Intercepts[s.InterceptID]={},t.Intercepts[s.InterceptID].Targeting=u,e.Intercepts.push(u),u.Decision.Creative&&(u.Decision.Creative.Type&&(e.Modules[u.Decision.Creative.Type]=n),u.Decision.PopUnderTarget&&(e.Modules.PopUnder=n)),u.Decision.Target&&u.Decision.Target.DisplayType===i.EMBEDDED_TARGET&&(e.Modules.EmbeddedTarget=n))),p.label=3;case 3:return[2]}}))}))})),[4,Promise.all(s)]):[2];case 1:return u.sent(),e.Intercepts.length>0&&(e.Modules.ScreenCapture=n,e.Intercepts.forEach((function(e){var t=e.InterceptID;window.QSI.InterceptReevaluator.setInterceptHasRun(t)}))),S.a.isDebug&&(e.DebugInfo=JSON.stringify(o)),delete e.Modules.DependencyResolver,[2]}}))}))},e.prototype.usePreviousEvaluationResult=function(e){var t=window.QSI.InterceptReevaluator;return!!t.isActive()&&(!!t.hasInterceptAlreadyRun(e)||!window.QSI.DataLayerHelper&&(null!=window.QSI.InterceptReevaluator.getInterceptEvaluationResult(e)&&!t.hasFrustrationSignalLogic(e)))},e.prototype.doStartTrackingMatrixCheck=function(e){var t=this.formatHasAnalyticsConsent(),n=null!=t?"true"===t:null,i=e.SRConfiguration.recordByDefault;return n||i&&null==n},e.prototype.canStartRegularSession=function(e){return!!e.RequestData.ID&&!!e.SRConfiguration&&!this.isSRThrottled(e.RequestData.ID)&&this.doStartTrackingMatrixCheck(e)},e.prototype.canStartTestSession=function(e){return!!e.RequestData.ID&&!!e.SRTestConfiguration&&!e.RequestData.isDebug&&"Editing"!==e.RequestData.bVersion},e.prototype.getExistingSessionTypeFromCookie=function(e){var t=window.QSI.cookie,n="QSI_ReplaySession_Info_"+e,i=JSON.parse(t.get(n));return null===i?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("No active session info cookie found called: "+n),"No_Active_Session"):!0===i.isTestSession?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Found test session info cookie called: "+n),"Test_Session"):!1===i.isTestSession?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Found regular session info cookie called: "+n),window.QSI.SRGlobalConfiguration.isTestSession&&(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Deleting regular session info cookie called: "+n+" to make way for test session"),t.erase(n,S.a.CookieDomain)),"Regular_Session"):void 0},e.prototype.getMillisecondsToDelay=function(){var e=S.a.config.clientSideDelayMilliseconds;return"number"!=typeof e||!e&&0!==e||e>=72e6||e<0?window.QSI.global.featureFlags["DX.DXA_No_Delay"]?0:this.defaultClientSideDelayMilliseconds:e},e.prototype.convertIsolationStatus=function(e){switch(e){case u.e.NOT_ISOLATED:return u.d.NOT_ISOLATED;case u.e.ISOLATED_V1:return u.d.ISOLATED_V1;default:throw new Error("Invalid isolation status: "+e)}},e.prototype.setSRGlobalConfiguration=function(e){var t=window.QSI.util;!e.SRTestConfiguration&&window.QSI.SRGlobalConfiguration||(window.QSI.SRGlobalConfiguration={brandId:e.RequestData.brandID,brandDc:t.getBrandDC(e.RequestData.brandDC),zoneId:e.RequestData.ID,validatedIdentifierRules:e.RequestData.validatedIdentifierRules,zoneIdentifierRules:e.RequestData.zoneIdentifierRules,srBaseUrl:S.a.getSRBaseURLFromConfigAndOverrides(t.getBrandDC(e.RequestData.brandDC)),cookieDomain:e.RequestData.cookieDomain,configuration:e.SRConfiguration||e.SRTestConfiguration,brandBaseUrl:e.RequestData.brandBaseUrl,isTestSession:!!e.SRTestConfiguration,isolationStatus:void 0!==e.RequestData.isolationStatus?this.convertIsolationStatus(e.RequestData.isolationStatus):void 0})},e.prototype.canStartSR=function(e){var t,n,i,r,o,a,s,c=window.QSI.global;return!(!e.SRConfiguration&&!e.SRTestConfiguration)&&(e.RequestData&&(null===(t=e.RequestData)||void 0===t?void 0:t.ID)&&(null===(i=null===(n=e.RequestData)||void 0===n?void 0:n.ID)||void 0===i?void 0:i.startsWith("ZN_"))?!!this.evaluateSRConditionalTargeting(e)&&(e.RequestData.isolationStatus!==u.e.ISOLATION_ERROR&&(e.SRConfiguration&&(null===(r=window.QSI.SR)||void 0===r?void 0:r.zoneId)?((null===(o=window.QSI.SR)||void 0===o?void 0:o.zoneId)!==e.RequestData.ID&&(c.srMultiZoneErrors+=1,this.debugLog.e("Multiple SR Zones Detected on page. "+(null===(a=window.QSI.SR)||void 0===a?void 0:a.zoneId)+" is already initialized, "+e.RequestData.ID+" attempted to initialize after. To resolve, please use only one zone snippet per page."),1==c.srMultiZoneErrors&&console.error("Qualtrics: Multiple Zones Detected on page. "+(null===(s=window.QSI.SR)||void 0===s?void 0:s.zoneId)+" is already initialized, "+e.RequestData.ID+" attempted to initialize after. To resolve, please use only one zone snippet per page.")),!1):!e.SRConfiguration||!e.RequestData||"SR_ENABLED_FOR_WEB_ONLY"===e.RequestData.srEnabled||"SR_ENABLED_FOR_WEB_AND_MOBILE"===e.RequestData.srEnabled)):(this.debugLog.e("Missing or incorrectly formatted request data in targeting response"),!1))},e.prototype.evaluateSRConditionalTargeting=function(e){if(window.QSI.global.featureFlags["DX.DXAConditionalTargeting_EA"]){if(!e)return!1;if(e.SRConfiguration){if(!e.SRConfiguration.logicTree||e.SRConfiguration.logicTree.Type!==o.VALUE_NODE)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRConfiguration.zoneId+" does not have a valid conditional targeting logic tree, skipping SR"),!1;if(!(t=e.SRConfiguration.logicTree)||!t.Value)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRConfiguration.zoneId+" conditional targeting logic tree evaluated false, skipping SR"),!1}else if(e.SRTestConfiguration){if(!e.SRTestConfiguration.logicTree||e.SRTestConfiguration.logicTree.Type!==o.VALUE_NODE)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRTestConfiguration.zoneId+" does not have a valid test conditional targeting logic tree, skipping SR"),!1;var t;if(!(t=e.SRTestConfiguration.logicTree)||!t.Value)return this.debugLog.log("Brand "+e.RequestData.brandID+", zone "+e.SRTestConfiguration.zoneId+" test conditional targeting logic tree evaluated false, skipping SR"),!1}}return!0},e.prototype.startSR=function(e){var t=this,i=window.QSI,r=i.API,o=i.SR,a=i.SRGlobalConfiguration,s=this.canStartRegularSession(e),c=this.canStartTestSession(e),u=this.getExistingSessionTypeFromCookie(a.zoneId);c&&Promise.all([n.e(2),n.e(16)]).then(n.bind(null,81)).then((function(e){var n=e.RenderTestSessionComponents;o&&"No_Active_Session"===u&&(window.QSI.SR=null),n({zoneId:a.zoneId,brandBaseUrl:a.brandBaseUrl,isTestSessionActive:"Test_Session"===u,errorCallback:t.debugLog.e})})),(s||c&&"Test_Session"===u)&&r.SessionRecording.start()},e.prototype.handleTargetingResponse=function(e,t){var i=this,r=window.QSI,o=r.AssetManager,a=r.API,s=r.EventTracker,c=r.history;try{var u;if("SampleRejected"===t)return;try{u=JSON.parse(t)}catch(e){return void this.debugLog.e("Failed to parse JSON of targeting response: "+t)}if(u.Error)return void this.debugLog.e(u.Message);if("XMD_RETRY"===u.Message)return void this.targetingRetryer.backOffAndRetry((function(){i.load(e,!0)}));var l=u.Modules;this.setGlobalVars(u);var d=this.isBrowserSupported();if("EXTREF_RETRY"===u.Message){if(l.Core&&d)o.promiseLoadScript("Core",l.Core,S.a,this.latencyLog).then((function(){return D(i,void 0,void 0,(function(){return E(this,(function(t){return this.evaluateAndSetExternalReference(u),this.load(C(C({},e),{Q_EXT_REF:!0}),!1),[2]}))}))}));return}if(u.RequestData&&u.RequestData.reevaluateInterceptOnUrlChange&&this.handleSPAEvaluation({onHashChange:!0,onUrlPathChange:!0}),c.logVisit(),this.canStartSR(u)&&(this.setSRGlobalConfiguration(u),setTimeout((function(){i.startSR(u)}),this.getMillisecondsToDelay())),!S.a.Request[e.id].hasDependencies&&S.a.Request[e.id].hasBeenResolved||(s.trackElements(),s.incrementEventList(),window._qsie=a.Events),this.csTargetingParams={targetingResponse:u,targetingRequest:S.a.Request[e.id],clientVersion:S.a.global.clientVersion,assetLoadingParams:e},l.Core&&d)o.promiseLoadScript("Core",l.Core,S.a,this.latencyLog).then((function(){return D(i,void 0,void 0,(function(){var t,i,r=this;return E(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),t=window.QSI.ClientSideTargeting,S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&u.ClientSideIntercepts&&u.ClientSideIntercepts.length>0?(t.setEnabled(!0),[4,this.doCSTargetingEvaluation(u,S.a.Request[e.id],S.a.global.clientVersion)]):[3,2];case 1:return o.sent(),[3,3];case 2:u.Intercepts&&u.Intercepts.forEach((function(t){t&&(t.Error?r.debugLog.log(t.Message):(S.a.Request[e.id].Intercepts[t.InterceptID]={},S.a.Request[e.id].Intercepts[t.InterceptID].Targeting=t))})),o.label=3;case 3:return!u.Dependencies||S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&u.ClientSideIntercepts&&u.ClientSideIntercepts.length>0?(n.e(5).then(n.bind(null,35)).then((function(e){(0,e.addPopunderEmbeddedDataHandler)(e.updatePopunderEDCallback)})),this.shouldMakeXMDDebugCall()?(e.Q_XMD_DEBUG=!0,this.handleXMDDebug(e,u)):this.loadModules(e,u)):this.handleDependencyResolver(e,u),[3,5];case 4:return i=o.sent(),this.debugLog.e(i),[3,5];case 5:return[2]}}))}))}),(function(){}));else this.doneLoading(e,u)}catch(e){this.debugLog.e(e)}},e.prototype.evaluateAndSetExternalReference=function(e){var t,n=e.RequestData.extRefType,i=e.RequestData.extRefValue;switch(n){case"JS":t=window.QSI.EmbeddedData.getJavaScriptValue(i).toString();break;case"Cookie":t=window.QSI.EmbeddedData.getCookieVal(i);break;case"HTML":t=window.QSI.EmbeddedData.getHTMLFromDOM(i);break;case"StaticValue":t=i;break;default:return void this.debugLog.log("Invalid type when evaluating external reference of type "+n+" and value "+i+" in "+e.RequestData.ID)}t&&(S.a.config.externalReference=t)},e.prototype.shouldMakeXMDDebugCall=function(){return!window.QSI.ClientSideTargeting.isEnabled()&&(!!S.a.config.externalReference&&S.a.isDebug)},e.prototype.handleDependencyResolver=function(e,t){var n=this,i=window.QSI.AssetManager;e.BrandDC=t.RequestData.brandDC;var r=this.generateTargetingURL(e);r+="&t="+(new Date).getTime(),r+="&Q_VSI="+encodeURIComponent(JSON.stringify(t.RequestData.validIntercepts)),r+="&Q_DPR=true",this.latencyLog.startComponentTimer(h.a.components.DPR_TARGETING);var o="";for(var a in t.Dependencies)Object.prototype.hasOwnProperty.call(t.Dependencies,a)&&("SiteCatalyst"===a&&(QSI["Resolve"+a].rootName=S.a.adobeVar),o+=QSI["Resolve"+a].prepare(t.Dependencies[a]));o+="&"+this.getTargetingPostData(),i.promiseFetch("POST",r,o).then((function(){this.latencyLog.endComponentTimer(h.a.components.DPR_TARGETING)})).then(this.handleTargetingResponse.bind(this,e),(function(t){n.debugLog.e(t.Message),e.deferred&&e.deferred.reject()}))},e.prototype.handleXMDDebug=function(e,t){var n=this,i=window.QSI.AssetManager,r={};t.Intercepts.forEach((function(e){if(e.Decision&&e.Decision.ActionSetID){var t=e.InterceptID,n=e.Decision.ActionSetID;r[t]=n}})),e.BrandDC=t.RequestData.brandDC;var o=this.generateTargetingURL(e),a="";a+=this.getTargetingPostData();var s=""+h.a.components.XMD_DEBUG_TARGETING+this.xmdDebugRetryer.getRetryCount();this.latencyLog.startComponentTimer(s),i.promiseFetch("POST",o,a).then((function(i){n.latencyLog.endComponentTimer(s),n.handleXMDDebugResponse(e,t,r,i)}))},e.prototype.handleXMDDebugResponse=function(e,t,n,i){var r,o,a=this;try{r=JSON.parse(i)}catch(e){return void this.debugLog.e("Failed to parse JSON of Q_XMD_DEBUG targeting response: "+i)}if(S.a.isDebug)try{o=JSON.parse(t.DebugInfo)}catch(e){return void this.debugLog.e("Failed to parse debugInfo JSON of Q_DEBUG targeting response: "+t)}S.a.isDebug&&(r.Intercepts.forEach((function(e){if(e){var t=e.InterceptID;Object.prototype.hasOwnProperty.call(o.Intercepts,t)&&Object.prototype.hasOwnProperty.call(n,t)&&e.Error&&a.debugLog.log(e.Message)}})),r.DebugInfo=JSON.stringify(o),r.Modules.Debug=S.a.global.clientVersion),r.Intercepts.forEach((function(n){if(n)if(n.Error)a.debugLog.log(n.Message);else{for(var i=void 0,r=0;r0?i.latencyLog.send():i.latencyLog.sampledSend(S.a.global.latencySamplePercentage)),i.setGlobalIncludes(e,t);var r=S.a.Request[e.id].displayInterceptType,o=S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&t.ClientSideIntercepts&&t.ClientSideIntercepts.length>0;("manual"!==r&&!S.a.Request[e.id].zoneManualDisplay||S.a.Request[e.id].hasDependencies&&!o)&&n(e.id,!1),i.doneLoading(e,t),e.deferred&&e.deferred.resolve()}))},e.prototype.isBrowserSupported=function(){return!("Chrome"===window.QSI.Browser.name&&window.QSI.Browser.version<=20)&&(!("Firefox"===window.QSI.Browser.name&&window.QSI.Browser.version<=59)&&!("Internet Explorer"===window.QSI.Browser.name&&window.QSI.Browser.version<=10))},e.prototype.setGlobalIncludes=function(e,t){if(S.a.isDebug&&t.DebugInfo){S.a.Request[e.id].Debug={debugInfo:JSON.parse(t.DebugInfo),version:t.RequestData.bVersion};var n={version:t.RequestData.bVersion,debugInfo:JSON.parse(t.DebugInfo)};S.a.debugConfig=n}S.a.version=t.RequestData.bVersion,S.a.InterceptsRan=!1,S.a.Request[e.id].hasDependencies=t.RequestData.hasDependencies,S.a.Request[e.id].hasBeenResolved=t.RequestData.hasBeenResolved,S.a.Request[e.id].displayInterceptType=t.RequestData.displayInterceptType,S.a.Request[e.id].zoneManualDisplay=t.RequestData.zoneManualDisplay},e.prototype.setGlobalVars=function(e){window.QSI.Browser={name:e.RequestData.browser,version:e.RequestData.browserVersion,isMobile:e.RequestData.isMobile,isBrowserSupported:e.RequestData.isBrowserSupported},window.QSI.CORSOrigin=e.RequestData.CORSOrigin,window.QSI.OS={name:e.RequestData.osName,version:e.RequestData.osVersion},window.QSI.config.gtmContainerID=e.RequestData.googleDataLayerVariable,window.QSI.config.customJavaScriptPermission=e.RequestData.customJavaScriptPermission,S.a.global.brandID=e.RequestData.brandID,S.a.global.brandDC=e.RequestData.brandDC,S.a.global.geo=e.RequestData.geo,S.a.global.graphicPath=S.a.overrides.graphicPath||"https://"+S.a.global.brandDC+"/WRQualtricsSiteIntercept/Graphic.php?IM=",S.a.global.imagePath=S.a.global.baseURL+"/WRQualtricsShared/Graphics",S.a.global.maxCookieSize=e.RequestData.maxCookieSize,S.a.global.featureFlags=e.FeatureFlags,S.a.global.screenCaptureServiceBaseURL=e.RequestData.screenCaptureServiceBaseURL,S.a.global.brandBaseUrl=e.RequestData.brandBaseUrl,S.a.global.eventTrackers=e.RequestData.eventTrackers,S.a.adobeVar=e.RequestData.adobeSCVariable,S.a.id=e.RequestData.ID,S.a.reqID[e.RequestData.ID]=!0,S.a.CookieDomain=e.RequestData.cookieDomain,S.a.historyStorageType=e.RequestData.historyStorageType,S.a.historyStorageSize=e.RequestData.historyStorageSize,S.a.currentURL=window.location.href.split("?")[0],function(){var e=document.createElement("div");e.className="scrollbar-measure",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-99999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;S.a.scrollbarWidth=t,document.body.removeChild(e)}()},e.prototype.parseQueryString=function(e){var t={};if(e&&-1!==e.indexOf("?"))for(var n=e.split("?",2)[1].split("&"),i=0;i1?n:i.createArrayFromArguments(L([n],T(r))),--a||s.resolve(t)}};if(o>1)for(var u=0;u0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?(n.e(5).then(n.bind(null,35)).then((function(e){(0,e.addPopunderEmbeddedDataHandler)(e.updatePopunderEDCallback)})),u=t.Deferred(),c.deferred=u,t.loadModules(c,r),[2,new Promise((function(e,t){u.promise().then(e).fail(t)}))]):[2]}}))}))},e.prototype.refreshDebug=function(e){var t=this.oldEvaluationResults,n=this.evaluationResults;if(JSON.stringify(t)!==JSON.stringify(n)){var i={debugInfo:JSON.parse(e.DebugInfo)},r=window.QSI;r.debuggerHasDisplayed=!1,window.QSI.debugHandlerInstance=new r.DebugHandler(i),r.debuggerHasDisplayed=!0}else window.QSI.debugHandlerInstance&&window.QSI.foundFrustrationLogic&&window.QSI.InterceptReevaluator.isActive()&&window.QSI.debugHandlerInstance.refreshFrustrationSignalCounts();this.setOldEvaluationResults(n)},e.evaluateDebounceTimeout=100,e}()},38:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0),r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=["^QSI_ReplaySession_Info_ZN_.*"],a=function(){function e(){var e=this;this.cookieSize=0,document.cookie.split(";").forEach((function(t){var n=t.indexOf("QSI");~n&&(e.cookieSize+=t.length-n)}))}return e.prototype.set=function(e,t,n){void 0===n&&(n={});var r=n.force,o=n.erase,a=n.secure,s=n.daysToExpire,c=n.domain,u=n.shouldEncode,l=void 0!==u&&u,d=i.a.global.maxCookieSize,p=this.get(e),g=this.getCookieSize();p&&(g-=(e+"="+p).length);var f="";if(s){var h=new Date;h.setTime(h.getTime()+864e5*s),f="; expires="+h.toUTCString()}var S="";c?S="domain="+c:i.a.CookieDomain&&(S="domain="+i.a.CookieDomain);var I=e+"="+(l?this.encode(t):t),w=g+I.length;if(!(r||null!==d&&w<=d||null===d))throw new Error("Cannot exceed the specified maximum cookie size");this.cookieSize=o?g:w;var v=""+I+f+"; path=/; "+S;("https:"===location.protocol||a)&&(v+="; secure"),document.cookie=v},e.prototype.get=function(e){for(var t=document.cookie.split(";"),n=0;n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},s=function(e){var t,n,s={},c=r.b.ContactEmbeddedDataKey,u=r.b.ContactEmbeddedDataValue;try{for(var l=o(Object.entries(e)),d=l.next();!d.done;d=l.next()){var p=a(d.value,2),g=p[0],f=p[1];null!=f&&g.length<=c&&f.toString().length<=u?s[g.trim()]=f.toString().trim():Object(i.a)("Drop illegal item due to exceeding size limit (key > "+c+" characters, value > "+u+" characters or contains undefined value for key: "+g+")")}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s}},49:function(e,t){QSI.history&&!window.QTestLib||(QSI.historyStorage={historySessionName:"QSI_HistorySession",get useCookie(){return"sessionStorage"!==QSI.historyStorageType},get limit(){return this.useCookie?2e3:1e4},getHistorySessionData:function(){return this.useCookie?QSI.cookie.get(this.historySessionName):sessionStorage.getItem(this.historySessionName)},eraseHistorySessionData:function(){this.useCookie?QSI.cookie.erase(this.historySessionName):sessionStorage.removeItem(this.historySessionName)},setHistorySessionData:function(e){this.useCookie?QSI.cookie.set(this.historySessionName,e,{daysToExpire:0}):sessionStorage.setItem(this.historySessionName,e)}},QSI.history={historyStorage:QSI.historyStorage,logVisit:function(){this.logCurrentURL(),this.logSearch(),this.startFocusTracking(),this.logReferrer()},startFocusTracking:function(){if(!this.started)try{this.started=!0,this.focusTime=this.getFocusTimeFromBrowserStorage(),this.blurTime=this.getBlurTimeFromBrowserStorage();var e=this;setInterval((function(){try{e.focused?e.focusTime+=1:e.blurTime+=1}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}}),1e3);var t=function(){try{e.focused=!0}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}};t(),QSI.util.observe(window,"focus",t),QSI.util.observe(window,"blur",(function(){try{e.focused=!1}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}})),QSI.util.observe(window,"pagehide",(function(){try{QSI.profile.set("History","BlurTime",e.blurTime),QSI.profile.set("History","FocusTime",e.focusTime)}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}}))}catch(e){QSI.dbg.e(e)}},logSite:function(e,t){var n,i=this.historyStorage.getHistorySessionData();if(i){var r=(i=decodeURIComponent(i)).split("|");n=r[r.length-1].split("~")[0],i+="|"}else i="",n="";e!==n&&(i+=e+"~"+t,this.writeHistory(i))},writeHistory:function(e,t){if(null!=t&&t<=0)this.historyStorage.eraseHistorySessionData();else{t=t||QSI.historyStorageSize||QSI.global.maxCookieSize||this.historyStorage.limit;var n=encodeURIComponent(e),i=this.limitSize(n,t);try{this.historyStorage.setHistorySessionData(i)}catch(n){e=decodeURIComponent(i),this.writeHistory(e,t-500)}}},limitSize:function(e,t){if(!e.length)return e;for(t=t||this.historyStorage.limit;e.length>t;){var n=decodeURIComponent(e).split("|");n.splice(0,1),e=n.join("|"),e=encodeURIComponent(e)}return e},get:function(){var e=this.historyStorage.getHistorySessionData();return e||(e=[]),e=this.limitSize(e),decodeURIComponent(e)},logCurrentURL:function(){var e=window.location.href,t=1*new Date;this.logSite(e,t)},getReferrer:function(){return document.referrer},logSearch:function(){var e,t,n=this.getReferrer();if(n.search(/(google.com)|(bing.com)|(yahoo.com)/)>=0){var i="";n.search(/(google.com)|(bing.com)/)>=0?(e=/q=(.*?)\&/,(t=n.match(e))&&t.length&&t[1]&&(i=t[1])):n.search(/yahoo.com/)>=0&&(e=/p=(.*?)\&/,(t=n.match(e))&&t.length&&t[1]&&(i=t[1])),i=decodeURIComponent(i),QSI.profile.set("History","SearchTerm",i)}},logReferrer:function(){var e=this.getReferrer();e&&(QSI.util.build("a",{href:e}).hostname!==document.location.host&&QSI.profile.set("History","SiteReferrer",e),QSI.profile.set("History","PageReferrer",e))},logIntercept:function(e,t){t&&this.logActionSet(t)},logActionSet:function(e){if(e.search("AS_")>=0){var t=e,n=1*new Date;QSI.profile.set("ActionSetHistory",t,n),QSI.profile.set("ActionSetHistory",t,n,1)}},logSurvey:function(e,t){QSI.profile.set("QualtricsSurveyHistory",e,t,1)},getSiteReferrer:function(){return QSI.profile.get("History","SiteReferrer")},getPageReferrer:function(){return QSI.profile.get("History","PageReferrer")},getSearch:function(){var e=QSI.profile.get("History","SearchTerm");return e||(e=""),e},getTimeOnSite:function(){var e=this.focusTime;return e+this.blurTime+"|"+e},getFocusTimeFromBrowserStorage:function(){var e=QSI.profile.get("History","FocusTime");return e||(e=0),e},getBlurTimeFromBrowserStorage:function(){var e=QSI.profile.get("History","BlurTime");return e||(e=0),e},getActionSetHistory:function(e,t){var n=QSI.profile.get("ActionSetHistory",e,t);return n||(n=0),n},getPageCount:function(){var e,t,n=this.historyStorage.getHistorySessionData(),i=0,r=[];if(n){var o=(n=decodeURIComponent(n)).split("|");for(t=o.length,e=0;eNumber(t.style.zIndex)?1:0}));for(var n=0;nNumber(t.position.left)?1:0})),t=QSI.util.stableSort(t,(function(e,t){return Number(e.position.top)Number(t.position.top)?1:0})),e.Options.elements.Elements=t,e}return e}}}}]); } catch(e) { if (typeof QSI !== 'undefined' && QSI.dbg && QSI.dbg.e) { QSI.dbg.e(e); } }